package ooday02homework;

public  class AnimalTest {
    public static void main(String[] args) {
        Dog dog = new Dog("小黄", 2, "黄色");
        dog.drink();dog.lookHome();
        dog.eat();

        Fish fish = new Fish("小鱼", 2, "红色");
        fish.drink();
        fish.eat();

        Chick chick = new Chick("小鸡", 1, "黄色");
        chick.drink();chick.layEggs();
        chick.eat();
    }
}
